import request from '@/router/axios';
export const importSolderByExcel = (file) => {
  return request({
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    url: '/api/mes-admin/part/indirect/import-part',
    method: 'post',
    data: file
  });
};

export const getList = (current, size, params) => {
  return request({
    url: '/api/mes-admin/part/indirect/page',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  });
};

export const remove = (ids) => {
  return request({
    url: '/api/mes-admin/part/indirect/remove-pack',
    method: 'post',
    data: ids
  });
};

export const syncData = (params) => {
  return request({
    url: '/api/mes-warehouse/packing/packing/synchronous-part',
    method: 'post',
    data: params
  });
};

export const update = (params) => {
  return request({
    url: '/api/mes-admin/part/indirect/submitPart',
    method: 'post',
    data: params
  });
};
